<?php
class ORMpz_template extends ORMBase {
  public function __construct() {
    parent::__construct('pz_template');
  }

  public function __toEpObject($myManager, $epObject, $object) {
    if (isset($object->track_id)) {
      $epObject->track_id =  $object->track_id;
    }
    if (isset($object->name)) {
      $epObject->name =  $object->name;
    }
    if (isset($object->content)) {
      $epObject->content =  $object->content;
    }
    return $epObject;
  }

  public function __toObject($myManager, $epObject, $object) {
    $object->id = $epObject->oid;
    $object->track_id = $epObject->track_id;
    $object->name = $epObject->name;
    $object->content = $epObject->content;
    return $object;
  }
}
?>
